from utils import *
import BuildingUI as B
import os


@singleton
class ToolsData:
    def __init__(self):
        self.devices = B.Reactive([])
        self.current_device = B.Reactive("")
        self.images = B.Reactive([])
        self.current_image = B.Reactive("")
        self.tasks = B.Reactive([])


@singleton
class FudiScriptData:
    def __init__(self):
        self.status = B.Reactive("未开始")
        self.tz3_number = B.Reactive(0)
        self.tz4_number = B.Reactive(0)
        self.tz5_number = B.Reactive(0)
        self.round_number = B.Reactive(0)
        self.checked_tz3 = B.Reactive(False)
        self.checked_tz4 = B.Reactive(True)
        self.checked_tz5 = B.Reactive(True)
